import React from "react"

interface IBlindInjectionProps {
	gameTypeId?: number
	tableType?: number
	bbBlindScore?: number
	sbBlindScore?: number
	anteSwitch?: number
	anteScore?: number
	straddleAmount?: number
}

const BlindInjection: React.FC<IBlindInjectionProps> = ({
	gameTypeId = 0,
	tableType = 0,
	bbBlindScore = 0,
	sbBlindScore = 0,
	anteSwitch = 0,
	anteScore = 0,
	straddleAmount = 0
}) => {
	const isTexas = [1, 3].includes(gameTypeId) || [2001, 2003].includes(tableType)

	return (
		<div>
			{isTexas ? (
				<>
					<span>{sbBlindScore || "-"}</span> /<span>{bbBlindScore || "-"}</span>
					{straddleAmount ? <span> / {straddleAmount}</span> : null}
					{anteSwitch === 1 ? <span> ({anteScore})</span> : null}
				</>
			) : (
				<span>{bbBlindScore || "-"}</span>
			)}
		</div>
	)
}

export default BlindInjection
